package com.myf.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.myf.typeHandlers.JsonbTypeHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value="whs_warehouse",autoResultMap = true)
public class WarehouseEntity extends BaseEntity {
    @TableId(type = IdType.AUTO)
    public Integer id;

    public String code;

    public String name;

    public String address;

    public Double length;

    public Double width;

    public Double height;

    @TableField("contact_people")
    public String contactPeople;

    @TableField("contact_mobile_no")
    public String contactMobileNo;

    public Short category;

    @TableField("building_structure")
    public Short buildingStructure;

    @TableField("fire_protection_rating")
    public Short fireProtectionRating;

    @TableField("fire_resistance_rating")
    public Short fireResistanceRating;

    public Short status;

    @TableField(typeHandler = JsonbTypeHandler.class)
    public String attributes;

}
